import { App } from 'vue'
import SvgIcon from './SvgIcon/index.vue'

const allComponent: any = { SvgIcon }
// 对外暴露插件对象
export default {
  install(app: App) {
    // 注册全部组件
    Object.keys(allComponent).forEach((key: string) => {
      app.component(key, allComponent[key])
    })
  },
}
